import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

import javax.swing.JFileChooser;


public class Readfile {
	public static String openfile()
    {
        String st="";
       
        String s= "mvreg.txt";
        for(int i=0;i<s.length();i++)
            if(s.substring(i,i+1).equals("\\"))
                st=st+"/";
            else
                st=st+s.substring(i,i+1);
        
        //Doc file
        String line = null;    
        StringBuffer lines = new StringBuffer();

        try {
        FileReader reader = new FileReader(st.trim());
        BufferedReader bufferedReader = new BufferedReader(reader);
        while ((line = bufferedReader.readLine())!= null) 
        {
            lines.append(line);
            lines.append("\n");
        }
    } catch (IOException e1) { e1.printStackTrace(); }
        return lines.toString();
    }

}
